import register from "./register.vue";
import idcard from "./idcard.vue";
import face from "./face.vue";
import registerError from "./registerError.vue";
import registerSuccess from "./registerSuccess.vue";

//自动化加载模块路由
export default {
    //模块路由前缀
    root: "/account/",
    //自动化扫描当前目录下所有vue组件
    components: require.context('./', true, /\.vue$/),
    //framework7路由叠加
    routes: [
        {
            path: '/account/register/',
            component: register,
            anonymous: true
        },
        {
            path: '/account/idcard/',
            component: idcard,
            anonymous: true
        },
        {
            path: '/account/face/',
            component: face,
            anonymous: true
        },
        {
            path: '/account/registerError/',
            component: registerError,
            anonymous: true
        },
        {
            path: '/account/registerSuccess/',
            component: registerSuccess,
            anonymous: true
        }

    ]
}
